package com.tencent.wxpay.protocol.model;

import java.io.Serializable;

/**
 * 代金券
 */
public class Coupon implements Serializable {
    private static final long serialVersionUID = 1561757018861493301L;
    /**
     * 代金券ID
     */
    private String coupon_id;
    /**
     * 代金券类型
     * 描述：CASH--充值代金券
     * NO_CASH---非充值代金券
     * 订单使用代金券时有返回（取值：CASH、NO_CASH）
     */
    private String coupon_type;

    /**
     * 单个代金券支付金额
     */
    private Integer coupon_fee;

    public Coupon() {
    }

    public Coupon(String coupon_id, String coupon_type, Integer coupon_fee) {
        this.coupon_id = coupon_id;
        this.coupon_type = coupon_type;
        this.coupon_fee = coupon_fee;
    }

    public String getCoupon_id() {
        return coupon_id;
    }

    public void setCoupon_id(String coupon_id) {
        this.coupon_id = coupon_id;
    }

    public String getCoupon_type() {
        return coupon_type;
    }

    public void setCoupon_type(String coupon_type) {
        this.coupon_type = coupon_type;
    }

    public Integer getCoupon_fee() {
        return coupon_fee;
    }

    public void setCoupon_fee(Integer coupon_fee) {
        this.coupon_fee = coupon_fee;
    }

    public enum CouponType {
        CASH, // 充值代金券
        NO_CASH, // 非充值代金券
    }
}
